import Vue from 'vue';
import Router from 'vue-router';
import routersStatic from '@/router/routersStatic';
Vue.use(Router);
export function createRouter() {
  return new Router({
    mode: 'history',
    linkActiveClass: 'secondary',
    base: process.env.BASE_URL,
    scrollBehavior: () => ({ y: 0 }),
    routes: routersStatic,
  });
}
